package com.heima.string.practice;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        /**
         * 阿拉伯数字转为罗马数字
         * 1. 数字范围[1, 9]
         */
        String[] vis = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"};
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        StringBuilder ans = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            int num = s.charAt(i) - '0';
            ans.append(vis[num]+" ");
        }
        System.out.println(ans);
    }
}
